<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
	Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.

        Licensed under the Academic Free License version 2.1

	NOTE:  This service manifest is not editable; its contents will
	be overwritten by package or patch operations, including
	operating system upgrade.  Make customizations in a different
	file.

	Service manifest for HAL.
-->

<service_bundle type='manifest' name='SUNWhalr:hal'>

<service
	name='system/hal'
	type='service'
	version='1'>

	<create_default_instance enabled='false' />

	<single_instance />

	<dependency name='usr'
		type='service'
		grouping='require_all'
		restart_on='none'>
		<service_fmri value='svc:/system/filesystem/minimal' />
	</dependency>

	<dependency
		name='devices'
		grouping='require_all'
		restart_on='none'
		type='service'>
		<service_fmri value='svc:/system/device/local' />
	</dependency>

	<dependency name='dbus'
		type='service'
		grouping='require_all'
		restart_on='none'>
		<service_fmri value='svc:/system/dbus' />
	</dependency>

	<dependency name='sysevent'
		type='service'
		grouping='require_all'
		restart_on='none'>
		<service_fmri value='svc:/system/sysevent' />
	</dependency>

	<dependency name='keymap'
		type='service'
		grouping='optional_all'
		restart_on='none'>
		<service_fmri value='svc:/system/keymap' />
	</dependency>

	<exec_method
		type='method'
		name='start'
		exec='/lib/svc/method/svc-hal start'
		timeout_seconds='600'>
		<method_context>
			<method_credential user='root' group='root' />
		</method_context>
	</exec_method>

	<exec_method
		type='method'
		name='stop'
		exec=':kill'
		timeout_seconds='30' />

	<property_group name='startd' type='framework'>
		<!-- sub-process core dumps shouldn't restart session -->
		<propval name='ignore_error' type='astring'
		    value='core,signal' />
	</property_group>

	<stability value='Unstable' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
			Hardware Abstraction Layer daemon
			</loctext>
		</common_name>
		<documentation>
			<manpage title='hald' section='8' manpath='/usr/man' />
		</documentation>
	</template>

</service>

</service_bundle>
